﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;

namespace NetFrameworkExtensions.Reflection
{
  public static class AssemblyExtensions
  {
    public static string GetLocalPath(this Assembly assembly)
    {
      return Path.GetDirectoryName(new Uri(Assembly.GetEntryAssembly().CodeBase).LocalPath);
    }
    public static string GetLocalFolder(this Assembly assembly)
    {
      return Path.GetDirectoryName(assembly.GetLocalPath());
    }
  }
}
